package pers.baiban.sqltoword.constant;

import cn.hutool.core.collection.ListUtil;
import pers.baiban.sqltoword.vo.ColumnVO;

import java.util.List;

/**
 * SRM的参数配置
 *
 * @author 强子初
 * @since 2024/3/18
 */
public class SRMConstant {

    /**
     * SRM表头列
     */
    public static final List<String> DEFAULT_TABLE_HEADER = ListUtil.of("#", "字段", "名称", "数据类型", "主键", "非空", "默认值", "备注说明");
    /**
     * SRM表头宽度
     */
    public static final List<String> DEFAULT_TABLE_HEADER_WIDTH = ListUtil.of("5%", "20%", "15%", "10%", "10%", "10%", "15%", "auto");

    /**
     * SRM展示行和行顺序
     */
    public static final List<String> DEFAULT_TABLE_COLUMN = ListUtil.of(
            ColumnVO.Fields.number,
            ColumnVO.Fields.columnName,
            ColumnVO.Fields.columnComment,
            ColumnVO.Fields.columnType,
            ColumnVO.Fields.isPrimaryKey,
            ColumnVO.Fields.notNullable,
            ColumnVO.Fields.columnDefault,
            null
    );
}
